﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master"  AutoEventWireup="true" CodeBehind="fastFact_edit.aspx.cs" Inherits="NCC_SOP.Admin.fastFact_edit" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style1
        {
            width: 97px;
        }
        .style2
        {
            width: 180px;
        }
        .style3
        {
            width: 7px;
        }
    </style>
</asp:Content>


<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div style="float:left; width:100%; padding-bottom: 10px;">
        <a href="staticReports_admin.aspx">GO BACK</a>
    </div>

    <div style="float:left; width:100%">
        <asp:Label ForeColor="Red" ID="updateErrorMsg" runat="server" Visible="false" />
    </div>

    <div style="float:left; width:100%">
        <table style="width: 100%;">
        <tr>
            <td class="style1" style="font-weight: bold; color: #000000">
                &nbsp;
                Report Name:</td>
            <td class="style2">
                &nbsp;
                <asp:TextBox ID="rptName" runat="server"></asp:TextBox>
            </td>
            <td class="style3">
                &nbsp;
            </td>
            <td class="style1" style="font-weight: bold; color: #000000">
                &nbsp;
                Cancer Site:</td>
            <td>
                &nbsp;
                <asp:DropDownList ID="DS" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style1" style="font-weight: bold; color: #000000">
                &nbsp;
                Stats Type:</td>
            <td class="style2">
                &nbsp;
                <asp:DropDownList ID="rptType" runat="server">
                </asp:DropDownList>
            </td>
            <td class="style3">
                &nbsp;
            </td>
            <td class="style1" style="font-weight: bold; color: #000000">
                &nbsp;
                Report Status:</td>
            <td>
                &nbsp;
                <asp:RadioButtonList id="rpt_status" runat="server" repeatdirection="Horizontal">
                    <asp:ListItem ID="active" runat="server" Text="Active" Selected="True"/>
                    <asp:ListItem ID="inactive" runat="server" Text="Inactive" />
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="style1" style="font-weight: bold; color: #000000">
                &nbsp;
                Last Updated:</td>
            <td class="style2">
                &nbsp;
                <asp:label ID="lastUpdateDt" runat="server"></asp:label>
            </td>
            <td class="style3">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    </div>
   

   <div style="float:left; width:100%; padding-top:20px;">
       <p style="font-weight: bold; font-style: italic; color: #000000; font-size: large">Report Summary:</p>
       <asp:TextBox ID="Summary" runat="server" TextMode="MultiLine" Columns=20 
           Rows=20 Height="165px" Width="562px"></asp:TextBox>
   </div>

   <div style="float: left; width: 100%; padding-top: 20px;">
       <div style="float: left; width: 100%;">
           <p>
               Attached File:
               <asp:Label ID="uploadURL" runat="server"></asp:Label>
               &nbsp;&nbsp;&nbsp;
               <asp:Button ID="previewRptLink" runat="server" Text="Preview" OnClick="previewRpt" />
           </p>
       </div>

        <div style="float: left; width: 100%;">
            <asp:Label ID="uploadError" ForeColor="Red" Visible="false" runat="server" />
        </div>
        <div style="float: left; width: 100%;">
            <telerik:RadUpload ID="rptLinks" runat="server" MaxFileInputsCount="1" AllowedFileExtensions=".pdf">
            </telerik:RadUpload>
        </div>
        <div style="float: left; width: 100%; padding-top: 10px;">
            <asp:Button ID="buttonSubmit" runat="server" CssClass="RadUploadSubmit" OnClick="uploadFile_Click"
                Text="Upload" />
        </div>
        
        <div class="title" style="float: left; width: 100%; padding-top=10px; color: green">
            Uploaded valid files (*.jpg, *.jpeg):
        </div>
        <div style="float: left; width: 100%; padding-top=5px;">
            <asp:Repeater ID="repeaterValidResults" runat="server" Visible="False">
                <ItemTemplate>
                    <%#DataBinder.Eval(Container.DataItem, "FileName")%>
                    (<%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>)<br />
                    <br />
                </ItemTemplate>
            </asp:Repeater>
        </div>

        <asp:HiddenField ID="uploadFileLink" runat="server" />

    </div>


    <div style="float:left; width:100%; padding-top:20px;">
        <fieldset>
            <legend>Access Right Assignment</legend>
            <div style="float: left; width: 100%;">
                <asp:CheckBoxList ID="roleAssignment" runat="server" RepeatColumns="3" RepeatDirection="Horizontal">
                </asp:CheckBoxList>
            </div>
            
        </fieldset>
    </div>

   <div style="float:left; width:100%; padding-top:20px;">
       <asp:Button ID="Button1" runat="server" Text="Update" OnClick="updateRptBtnClick"/>
   </div>



</asp:Content>